     <?php

include("conexion.php");
$link=Conectarse();
$sql = "select *";
$sql.= "from MaterialBibliografico  where ID_MatBib=".$_REQUEST["codigo"];
$result = mysql_query($sql);

$resultado = mysql_num_rows($result);

   ?>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Datos del Material</title>
<style type="text/css">
<!--
body {
	font-family: "Trebuchet MS", Tahoma, Verdana;
	font-size: 16px;
	font-weight: normal;
	color: #666666;
	text-decoration: none;
	padding: 20px;
}
h4 {
	color: #CC0000;
}
-->
</style>
</head>
<body>
<h4><p align="center">Datos del Material</p></h4>


<?php
    

         if ($resultado> 0) {

        while($row = mysql_fetch_assoc($result)) {

        echo "<strong>".$row['Titulo_MatBib']."</strong><br>";

        echo "Direccion: ".$row[1]."<br>";

         echo "Telefono: ".$row[2]."<br><br>";

   }

 }

   ?>

</body>
</html>
